package com.nan.operation;

import com.nan.book.Book;
import com.nan.book.BookList;

//显示图书
public class DisplayOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书");
        for(int i=0;i< bookList.getUsedSize();i++){
            Book book =bookList.getBook(i);
            System.out.println(book);
        }
    }
}
